<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>跳蚤市场</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <style type="text/css">
        .icon {
            width: 1em;
            height: 1em;
            vertical-align: -0.15em;
            fill: currentColor;
            overflow: hidden;
        }
        .mui-preview-image.mui-fullscreen {
            position: fixed;
            z-index: 20;
            background-color: #000;
        }
        .mui-preview-header,
        .mui-preview-footer {
            position: absolute;
            width: 100%;
            left: 0;
            z-index: 10;
        }
        .mui-preview-header {
            height: 44px;
            top: 0;
        }
        .mui-preview-footer {
            height: 50px;
            bottom: 0px;
        }
        .mui-preview-header .mui-preview-indicator {
            display: block;
            line-height: 25px;
            color: #fff;
            text-align: center;
            margin: 15px auto 4;
            width: 70px;
            background-color: rgba(0, 0, 0, 0.4);
            border-radius: 12px;
            font-size: 16px;
        }
        .mui-preview-image {
            display: none;
            -webkit-animation-duration: 0.5s;
            animation-duration: 0.5s;
            -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
        }
        .mui-preview-image.mui-preview-in {
            -webkit-animation-name: fadeIn;
            animation-name: fadeIn;
        }
        .mui-preview-image.mui-preview-out {
            background: none;
            -webkit-animation-name: fadeOut;
            animation-name: fadeOut;
        }
        .mui-preview-image.mui-preview-out .mui-preview-header,
        .mui-preview-image.mui-preview-out .mui-preview-footer {
            display: none;
        }
        .mui-zoom-scroller {
            position: absolute;
            display: -webkit-box;
            display: -webkit-flex;
            display: flex;
            -webkit-box-align: center;
            -webkit-align-items: center;
            align-items: center;
            -webkit-box-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            left: 0;
            right: 0;
            bottom: 0;
            top: 0;
            width: 100%;
            height: 100%;
            margin: 0;
            -webkit-backface-visibility: hidden;
        }
        .mui-zoom {
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
        }
        .mui-slider .mui-slider-group .mui-slider-item img {
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: 100%;
        }
        .mui-android-4-1 .mui-slider .mui-slider-group .mui-slider-item img {
            width: 100%;
        }
        .mui-android-4-1 .mui-slider.mui-preview-image .mui-slider-group .mui-slider-item {
            display: inline-table;
        }
        .mui-android-4-1 .mui-slider.mui-preview-image .mui-zoom-scroller img {
            display: table-cell;
            vertical-align: middle;
        }
        .mui-preview-loading {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            display: none;
        }
        .mui-preview-loading.mui-active {
            display: block;
        }
        .mui-preview-loading .mui-spinner-white {
            position: absolute;
            top: 50%;
            left: 50%;
            margin-left: -25px;
            margin-top: -25px;
            height: 50px;
            width: 50px;
        }
        .mui-preview-image img.mui-transitioning {
            -webkit-transition: -webkit-transform 0.5s ease, opacity 0.5s ease;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }
        @-webkit-keyframes fadeIn {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }
        @keyframes fadeIn {
            0% {
                opacity: 0;
            }
            100% {
                opacity: 1;
            }
        }
        @-webkit-keyframes fadeOut {
            0% {
                opacity: 1;
            }
            100% {
                opacity: 0;
            }
        }
        @keyframes fadeOut {
            0% {
                opacity: 1;
            }
            100% {
                opacity: 0;
            }
        }
        p img {
            max-width: 100%;
            height: auto;
        }
        .pic {
            display: inline-block;
            width: 200px;
            height: 200px;
            overflow: hidden;
        }
        .pic img {
            max-width: 200px;
            max-height: 200px;
        }
    </style>
    <link href="__TMPL__/public/assets/wuye/css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" type="text/css" href="__TMPL__/public/assets/wuye/css/app.css" />
    <script src="__TMPL__/public/assets/wuye/js/iconfont.js"></script>
    <link href="__TMPL__/public/assets/wuye/css/mui.picker.css" rel="stylesheet" />
    <link href="__TMPL__/public/assets/wuye/css/mui.poppicker.css" rel="stylesheet" />
    <script src="__TMPL__/public/assets/wuye/js/mui.min.js"></script>
    <script src="__TMPL__/public/assets/wuye/js/iconfont.js"></script>
    <script src="__TMPL__/public/assets/wuye/js/mui.picker.js"></script>
    <script src="__TMPL__/public/assets/wuye/js/mui.poppicker.js"></script>
    <script src="__TMPL__/public/assets/wuye/js/mui.zoom.js"></script>
    <script src="__TMPL__/public/assets/wuye/js/mui.previewimage.js"></script>
    <script src="__TMPL__/public/assets//js/jquery-1.10.2.min.js"></script>
</head>

<body>

<header class="mui-bar mui-bar-nav" id="header">
    <a class="mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">跳蚤市场</h1>
    <a class="mui-icon  mui-pull-right" style="font-size: 16px;padding-top: 0px;" href="#picture">
        <i class="mui-icon mui-icon-compose"></i>发布
    </a>
</header>
{:widget('Wuye/nav')}
<div class="mui-content">
    <div id="friend" class="mui-control-content  mui-active">

        <notempty name="data">
            <volist name="data" id="data">
                <a href="{:url('portal/wuye/marketdetail',['id'=>$data['id']])}">
                    <div class="mui-card">
                <div class="mui-card-header mui-card-media">
                    <img src="{$data.headimgurl|default=''}" style="width: 50px;height: 50px;margin-right: 5px;"/>
                    <div class="mui-media-body">
                        <notempty name="$data['remark']">
                            {$data.remark|default=''}
                            <else/>
                            {$data.nickname|default=''}
                        </notempty>

                        <p>发表于 <?php echo date('Y-m-d H:i:s',$data['time'])?>
                            <span style="float: right;font-size: 17px;color: red;font-weight: 800">{$data['jiage']?='￥'.$data['jiage']} </span>
                        </p>
                        <p style="color: #444">位于 {$data.wxName}</p>
                    </div>
                </div>
                <div class="mui-card-content" >
                    <div class="mui-card-content-inner">
                        <p style="color: #333;">{$data.content|default=''}</p>
                    </div>
                    <?php /*
                    <!--<div class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted" style="height: 110px;padding: 5px;">-->
                        <!--<div class="mui-scroll">-->
                            <!--<?php $img = explode(',',$data['imgsrc']);$cout = count($img);?>-->
                            <!--<volist name="img" id="img">-->
                                <!--<span style="width: 100px;height: 100px;overflow: hidden;"  class="pic"-->
                                <!--<switch name="cout" >-->
                                    <!--<case value="1">width="100%"</case>-->
                                    <!--<case value="2">width="50%"</case>-->
                                    <!--<case value="3">width="33.33%"</case>-->
                                    <!--<default />style="width:120px"-->
                                <!--</switch>-->
                                <!--&gt;<img src="<?php echo cmf_get_image_url($img);?>" data-preview-src="" data-preview-group="{$data.id}"></span>-->
                            <!--</volist>-->
                        <!--</div>-->
                    <!--</div>-->
                    */?>
                </div>
            </div>
                </a>
            </volist>
        </notempty>
    </div>
</div>

<div id="picture" class="mui-popover mui-popover-action mui-popover-bottom">
    <ul class="mui-table-view">
        <li class="mui-table-view-cell">
            <a href="#" style="color: #0b0b0b">朋友圈</a>
        </li>
        <li class="mui-table-view-cell">
            <a href="#" style="color: #0b0b0b">跳蚤市场</a>
        </li>
    </ul>
    <ul class="mui-table-view">
        <li class="mui-table-view-cell">
            <a href="#picture"><b>取消</b></a>
        </li>
    </ul>
</div>
</body>

<script>
    mui.previewImage();
</script>
<script>
    mui.init({
        swipeBack:true //启用右滑关闭功能
    });
    var gallery = mui('.mui-slider');
    gallery.slider({
        interval:3000//自动轮播周期，若为0则不自动播放，默认为0；
    });
    var info = document.getElementById("info");
    mui('body').on('tap', '.mui-popover-action li>a', function() {
        var a = this,
            parent;
        //根据点击按钮，反推当前是哪个actionsheet
        for (parent = a.parentNode; parent != document.body; parent = parent.parentNode) {
            if (parent.classList.contains('mui-popover-action')) {
                break;
            }
        }
        //关闭actionsheet
        mui('#' + parent.id).popover('toggle');
        if(a.innerHTML == '朋友圈'){
            console.log(a.innerHTML);
            window.location.href = "{:url('wuye/friends')}";
        }else if(a.innerHTML == '跳蚤市场'){
            window.location.href = "{:url('wuye/market')}";
        }

    });
    mui('body').on('tap','a',function(){document.location.href=this.href;});
</script>
<!--jq相关代码-->

</html>